//
//  UITableView+RWAdditions.h
//  Alumna
//
//  Created by ray on 2021/11/16.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UITableView (RWAdditions)

- (void)rw_registerClass:(nullable Class)cellClass;
- (void)rw_registerNibClass:(nullable Class)cellClass;

- (void)rw_registerHeaderFooterViewClass:(nullable Class)cellClass;
- (void)rw_registerHeaderFooterViewNibClass:(nullable Class)cellClass;

- (__kindof UITableViewCell *)rw_dequeueReusableCellWithClass:(nullable Class)cellClass;
- (__kindof UITableViewCell *)rw_dequeueReusableCellWithClass:(nullable Class)cellClass
                                                 forIndexPath:(NSIndexPath *)indexPath;
    
- (__kindof UITableViewCell *)rw_loadNibCellClss:(nullable Class)cellClass
                                           owner:(nullable id)owner;

- (nullable __kindof UITableViewHeaderFooterView *)rw_dequeueReusableHeaderFooterViewWithClass:(nullable Class)cellClass;

@end

NS_ASSUME_NONNULL_END
